<div class="frame_addProductDiv">

	<form id="statistics_countryForm" method="post" action="administrator-statistics-buyrank">

	  <table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#c8d9e9">

		<tr>

		  <td colspan="2" class="se" style="text-align:left">

		  	<strong>按条件筛选</strong>

		  </td>

		</tr>
		<tr>
		  <td valign="middle" class="ri-bbgg"><span class="red"></span> 时间： </td>
		  <td class="le">
		  	<div>
				<input name="begintime" value="<?php echo $this->params['begintime'];?>"/> - <input name="endtime" value="<?php echo $this->params['endtime'];?>"/>
			</div>
		  </td>
		</tr>

		<tr>

		  <td valign="middle" class="ri-bbgg"><span class="red"></span> 排名方式： </td>

		  <td class="le">

		  	<div>
				<select name="orderby">
					<option value="">请选择排名方式</option>
					<option <?php if($this->params['orderby'] == 'ptime') { ?>selected="selected"<?php } ?> value="ptime">按成功支付次数排名</option>
					<option <?php if($this->params['orderby'] == 'pmoney') { ?>selected="selected"<?php } ?> value="pmoney">按成功交易总额排名</option>
				</select>
			</div>


		  </td>

		</tr>

		<tr>

		  <td valign="top" class="ri-bbgg"><span class="red"></span></td>

		  <td class="le">

		  	<div>
				<input type="submit" value="提交搜索" />
			</div>


		  </td>

		</tr>
	  </table>
	</form>
	<?php if(!empty($this->list) && $this->params['orderby'] == 'ptime'): ?>
	<table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#c8d9e9" style="margin-top: 10px;">
		<tr>
			<td valign="middle" height="20" align="center">成功支付次数</td>
			<td valign="middle" height="20" align="center">会员EMAIL</td>
			<td valign="middle" height="20" align="center">会员ID</td>
		</tr>
		<?php foreach ($this->list as $value): ?>
		<tr>
			<td valign="middle" height="20" align="center"><?=$value['c']?></td>
			<td valign="middle" height="20" align="center"><?=$value['email']?></td>
			<td valign="middle" height="20" align="center"><?=$value['uid']?></td>
		</tr>
		<?php endforeach; ?>
		<tr><td colspan="5" height="24" align="center"><?php echo $this->page ?></td></tr>
	</table>
	<?php endif; ?>
	
	<?php if(!empty($this->list) && $this->params['orderby'] == 'pmoney'): ?>
	<table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#c8d9e9" style="margin-top: 10px;">
		<tr>
			<td valign="middle" height="20" align="center">成功支付金额</td>
			<td valign="middle" height="20" align="center">会员EMAIL</td>
			<td valign="middle" height="20" align="center">会员ID</td>
		</tr>
		<?php foreach ($this->list as $value): ?>
		<tr>
			<td valign="middle" height="20" align="center"><?=$value['m']?></td>
			<td valign="middle" height="20" align="center"><?=$value['email']?></td>
			<td valign="middle" height="20" align="center"><?=$value['uid']?></td>
		</tr>
		<?php endforeach; ?>
		<tr><td colspan="5" height="24" align="center"><?php echo $this->page ?></td></tr>
	</table>
	<?php endif; ?>
  

</div>